
$(function () {
    var sessionId = sessionStorage.getItem('sessionId');
    console.log(sessionId)
    $.ajax({
        url: 'https://www.bjdeshangyuan.com/book/api/getMemberInfo',
        type: 'POST',
        data: {sessionid: sessionId},
        success: function (r) {
            console.log(r.data.heandImgUrl)
            var newImg = r.data.heandImgUrl
            $('.pic').css('background', 'url(' + newImg + ')0% 0% / 100% 100%')
        }
    })

    /* 跳转完善信息 */
    $("#warp").click(function () {
        window.location.href = "perfect_information.html"

    })

    /* 跳转一般会员 */
    $("#general").click(function () {

        window.location.href = "general_membership.html"

    })


    /* 跳转我要投稿 */
    $("#contribution").click(function () {

        window.location.href = "i_want_submission.html"

    })

    /* 跳转夜间反馈 */
    $("#feedback").click(function () {

        window.location.href = "opinion_feedback.html"

    })

    /* 跳转问卷调查 */
    $("#investigation").click(function () {

        window.location.href = "questionnaire.html"

    })


})